<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
    
    
 <form method="post" action="${requestPath}">
			
			<div>
				姓名 :<input  type="text" name="name" value="${student.name }"/>
			</div>
			
			<div>
				性别 : 
				<c:forEach var="gender" items="${genders}">
					<input type="radio" name="gender" value="${gender}" ${gender==student.gender? 'checked="checked"':''}  /> ${gender.text }
				</c:forEach>
			
			</div>
			
			<div>
				生日 :<input  type="text" name="birthday" value='<fmt:formatDate value="${student.birthday }" pattern="yyyy-MM-dd"/>'/>
			</div
			
			<div>
				<c:if test="${empty student.id }">
					<button type="submit">保存</button>
				</c:if>
				
				<c:if test="${not empty student.id }">
					<input  type="hidden" name="id" value="${student.id}"/>
					<button type="submit">更新</button>
				</c:if>
				
			</div>
			
</form>